package com.resou.reader.dialog.fifteenfree;

import com.resou.reader.base.ResouBasePresenter;
import com.resou.reader.data.ResouxsRepository;
import com.resou.reader.mine.IView.UserInstance;

public class FifteenFreePresenter extends ResouBasePresenter<FifteenFreeContract.View> implements FifteenFreeContract.Presenter {

    private final ResouxsRepository mRepository;

    public FifteenFreePresenter(FifteenFreeContract.View view) {
        super(view);
        mRepository = ResouxsRepository.getInstance();
    }

    @Override
    public void setUserActivityState() {
        new Thread(() -> {
            mRepository.setFirstOpenState(UserInstance.getToken(), "android");
        }).start();
    }
}
